package com.team.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.team.entity.Room;
import com.team.entity.Schedule;
import com.team.service.ScheduleService;
import com.team.mapper.ScheduleMapper;
import com.team.util.Doctor;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
* @author asus
* @description 针对表【schedule(医生排期表)】的数据库操作Service实现
* @createDate 2024-07-13 14:39:19
*/
@Service
public class ScheduleServiceImpl extends ServiceImpl<ScheduleMapper, Schedule>
    implements ScheduleService{
@Autowired
private ScheduleMapper scheduleMapper;
    @Override
    public List<Doctor> getDoctorBySign(Integer sign,Integer departmentId) {
        return scheduleMapper.getDoctorBySign(sign,departmentId);
    }

    @Override
    public List<Room> getRoomByDocIdAndSign(Integer userId, Integer sign) {
        return scheduleMapper.getRoomByDocIdAndSign(userId,sign);
    }
}




